package com.medistat.i18n;

import java.util.ResourceBundle;

import org.springframework.stereotype.Service;

@Service("translatorService")
public class TranslatorServiceImpl implements TranslatorService {

	@Override
	public String translate(String key) {
		ResourceBundle bundle = ResourceBundle.getBundle("com.medistat.messages");
		return bundle.getString(key);
	}

}
